package com.example.demo.mapper;


import com.example.demo.entiy.Article;
import com.example.demo.entiy.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommentMapper {

    public List<Comment> getCommentListByArticleId(Integer articleId);

    public int insertCommentByComment(Comment comment);

    public int getAllCommentNum();

    public List<Comment> getCommentOrderByCreatedDesc();

    public int deleteCommentByArticleId(Integer articleId);
}
